package com.luokun.vue_shop.model;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

@Data
public class SpManagerModel {

    private int mgId;
    //名称
    private String mgName;
    //密码
    private String mgPwd;
    //注册时间
    private Integer mgTime;
    //电话

    private String mgMobile;
    //邮箱
    private String mgEmail;
    //1：表示启用 0:表示禁用
    private Integer mgState;
    //角色名称
    private String roleName;

    @TableField(exist = false)
    private Boolean State;

    public Integer getMgState() {
        return mgState;
    }

    public void setMgState(Integer mgState) {
        if (mgState==0){
            setState(false);
        }else if (mgState==1){
            setState(true);
        }
        this.mgState = mgState;
    }
}
